package com.api.shopapi.service.impl;

import com.api.shopapi.entity.CardStatus;
import com.api.shopapi.mapper.CardStatusMapper;
import com.api.shopapi.service.CardStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("CardStatusServiceImplOne")
public class CardStatusServiceImpl implements CardStatusService {

    @Autowired
    private CardStatusMapper cardStatusMapper;

    @Override
    public int insert(CardStatus cardStatus) {
        return cardStatusMapper.insert(cardStatus);
    }

    @Override
    public int update(CardStatus cardStatus) {
        return cardStatusMapper.update(cardStatus);
    }

    @Override
    public CardStatus getByCardNumber(String cardNumber) {
        return cardStatusMapper.getByCardNumber(cardNumber);
    }
}
